Don't jump through null ovec for RTP.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 7 Aug 2007 03:14:30 +0000 (03:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 7 Aug 2007 03:14:30 +0000 (03:14 +0000)
gpsbabel/main.c

index cca0d9a13c10f74d9b40c4c94415cf77bc5dfa20..fc31c69d644237f446dff82c8007046af380560d 100644 (file)
@@ -637,7 +637,7 @@ main(int argc, char *argv[])
                        fatal ("Couldn't install the exit signal handler.\n");
                }
 
-               if (ovecs->position_ops.wr_init) {
+               if (ovecs && ovecs->position_ops.wr_init) {
                        ovecs->position_ops.wr_init(ofname);
                }